import Http from "../utils/Http";

export default class PageModel extends Http {

  // home
  getHome() {
    return this.request({
      url: '/h5/uni/home/index'
    })
  }

  // category
  getCategory() {
    return this.request({
      url: '/h5/uni/category/index'
    })
  }

  // cart
  getCart() {
    return this.request({
      url: '/h5/uni/cart/index'
    })
  }

  // center
  getCenter() {
    return this.request({
      url: '/h5/uni/center/index'
    })
  }

  // -------------------------------------

  joinTitle() {
    return this.request({
      url: '/h5/uni/join/title'
    })
  }

  joinProduct() {
    return this.request({
      url: '/h5/uni/join/product'
    })
  }

  materialList(data) {
    return this.request({
      url: '/h5/uni/material/list',
      data
    })
  }

}
